require "migration_helpers"
class CreateLocations < ActiveRecord::Migration
  extend MigrationHelpers
  def self.up
    create_table :locations do |t|
      t.column :uri, :string
      t.column :name, :string
      t.column :url, :string
      t.column :locate, :string
      t.column :find_id, :string
      t.column :proerty_id, :string
      t.column :meta_id, :integer
    end
    foreign_key(:locations, :meta_id, :metas)
  end

  def self.down
    drop_table :locations
  end
end
